import os
from typing import Dict


def to_generic_id(generic_item: Dict[str, str]):
    if '' not in generic_item:
        generic_name = '<' + ','.join([k + ' ' + v for k, v in generic_item.items()]) + ">"
    else:
        generic_name = ''
    return generic_name


def get_builtins_file():
    return os.path.join(os.path.dirname(__file__), 'builtin_classes.py')
